

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=auto>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/img/favicon.ico">
  <link rel="icon" href="/img/favicon.ico">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="description" content="">
  <meta name="author" content="Firestar">
  <meta name="keywords" content="">
  <meta name="description" content="申请 GitHub Pages新建一个 repository，命名为 (user_name).github.io，隐私设置为 Public，再建一个 GitHub 仓库用来存放博客的源代码（可选） 申请域名我选择的是阿里云，在万网输入自己想要的域名并购买。一般来讲 .top 最便宜，.xyz 次之。 假设域名为 example.top 根据网站提示做好域名实名制认证等流程。在域名控制台中选择：">
<meta property="og:type" content="article">
<meta property="og:title" content="Hello World">
<meta property="og:url" content="https://blog.firestar-reimu.top/Hello-World/">
<meta property="og:site_name" content="Firestar 的幻想乡">
<meta property="og:description" content="申请 GitHub Pages新建一个 repository，命名为 (user_name).github.io，隐私设置为 Public，再建一个 GitHub 仓库用来存放博客的源代码（可选） 申请域名我选择的是阿里云，在万网输入自己想要的域名并购买。一般来讲 .top 最便宜，.xyz 次之。 假设域名为 example.top 根据网站提示做好域名实名制认证等流程。在域名控制台中选择：">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://blog.firestar-reimu.top/images/hello_world_reimu.jpg">
<meta property="article:published_time" content="2021-09-06T04:00:00.000Z">
<meta property="article:modified_time" content="2021-11-16T03:25:18.675Z">
<meta property="article:author" content="Firestar">
<meta property="article:tag" content="Hello World">
<meta property="article:tag" content="Blog">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://blog.firestar-reimu.top/images/hello_world_reimu.jpg">
  
  <title>Hello World - Firestar 的幻想乡</title>

  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" />


  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-markdown-css@4.0.0/github-markdown.min.css" />
  <link  rel="stylesheet" href="/lib/hint/hint.min.css" />

  
    
    
      
      <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@10.7.2/styles/vs.min.css" />
    
  

  
    <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css" />
  


<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_ba1fz6golrf.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_kmeydafke9r.css">


<link  rel="stylesheet" href="/css/main.css" />

<!-- 自定义样式保持在最底部 -->

  
<link rel="stylesheet" href="//at.alicdn.com/t/font_2794470_ewg5czgn3cd.css">
<link rel="stylesheet" href="//at.alicdn.com/t/font_2794470_brhhjh3wx87.css">



  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    var CONFIG = {"hostname":"blog.firestar-reimu.top","root":"/","version":"1.8.12","typing":{"enable":true,"typeSpeed":64,"cursorChar":"_","loop":false},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"right","visible":"hover","icon":"§"},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"copy_btn":true,"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":false,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null,"path":"window.location.pathname"}},"search_path":"/local-search.xml"};
  </script>
  <script  src="/js/utils.js" ></script>
  <script  src="/js/color-schema.js" ></script>
<meta name="generator" content="Hexo 5.4.0"></head>


<body>
  <header style="height: 60vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand" href="/">
      <strong>Home</strong>
    </a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/">
                <i class="iconfont icon-home-fill"></i>
                首页
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/about/">
                <i class="iconfont icon-user-fill"></i>
                关于
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tools/">
                <i class="iconfont icon-tools"></i>
                工具
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" target="_blank" rel="noopener" href="https://github.com/Firestar-Reimu">
                <i class="iconfont icon-github"></i>
                GitHub
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
              &nbsp;<i class="iconfont icon-search"></i>&nbsp;
            </a>
          </li>
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">&nbsp;<i
                class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="banner" id="banner" parallax=true
         style="background: url('/img/Purple_Flower.jpg') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
          <div class="page-header text-center fade-in-up">
            <span class="h2" id="subtitle" title="Hello World">
              
            </span>

            
              <div class="mt-3">
  
  
    <span class="post-meta">
      <i class="iconfont icon-date-fill" aria-hidden="true"></i>
      <time datetime="2021-09-06 12:00" pubdate>
        2021-09-06 12:00:00
      </time>
    </span>
  
</div>

<div class="mt-1">
  
    <span class="post-meta mr-2">
      <i class="iconfont icon-chart"></i>
      9.2k 字
    </span>
  

  
    <span class="post-meta mr-2">
      <i class="iconfont icon-clock-fill"></i>
      
      
      29 分钟
    </span>
  

  
  
</div>

            
          </div>

          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      

<div class="container-fluid nopadding-x">
  <div class="row nomargin-x">
    <div class="d-none d-lg-block col-lg-2"></div>
    <div class="col-lg-8 nopadding-x-md">
      <div class="container nopadding-x-md" id="board-ctn">
        <div class="py-5" id="board">
          <article class="post-content mx-auto">
            <!-- SEO header -->
            <h1 style="display: none">Hello World</h1>
            
              <p class="note note-info">
                
                  本文最后更新于：2021-11-16 11:25:18
                
              </p>
            
            <div class="markdown-body">
              <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=86 src="//music.163.com/outchain/player?type=2&id=22636684&auto=1&height=66"></iframe>

<h3 id="申请-GitHub-Pages"><a href="#申请-GitHub-Pages" class="headerlink" title="申请 GitHub Pages"></a>申请 GitHub Pages</h3><p>新建一个 repository，命名为 <code>(user_name).github.io</code>，隐私设置为 Public，再建一个 GitHub 仓库用来存放博客的源代码（可选）</p>
<h3 id="申请域名"><a href="#申请域名" class="headerlink" title="申请域名"></a>申请域名</h3><p>我选择的是阿里云，在<a target="_blank" rel="noopener" href="https://wanwang.aliyun.com/">万网</a>输入自己想要的域名并购买。一般来讲 <code>.top</code> 最便宜，<code>.xyz</code> 次之。 假设域名为 <code>example.top</code> 根据网站提示做好域名实名制认证等流程。在<a target="_blank" rel="noopener" href="https://dc.console.aliyun.com/next/#/domain/list/all-domain">域名控制台</a>中选择：域名 &gt;&gt; 操作 &gt;&gt; 解析</p>
<p>解析中添加一条记录：</p>
<figure class="highlight dns"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs dns">记录类型：<span class="hljs-keyword">CNAME</span>；<br>主机记录自选（我这里选择的是 blog，因为 www 经常无法与 GitHub Pages 连接）；<br>解析线路选择默认；<br>记录值选择(user_name).github.io；<br>TTL选择“<span class="hljs-number">10</span>分钟”<br></code></pre></td></tr></table></figure>
<p>再去名为 <code>(user_name).github.io</code> 的 repository，新建一个文件，文件名为 <code>CNAME</code>，填入 <code>blog.example.top</code> ，通过 GitHub 的网络检测后就可以使用。</p>
<p>此时可以分别在浏览器中输入 <code>(user_name).github.io</code> 和 <code>blog.example.top</code> 试一试，如果能显示<code>README.md</code> 中的内容则设置成功。</p>
<h3 id="Hexo-搭建并添加文章"><a href="#Hexo-搭建并添加文章" class="headerlink" title="Hexo 搭建并添加文章"></a>Hexo 搭建并添加文章</h3><p>我选择用 <a target="_blank" rel="noopener" href="https://hexo.io/zh-cn/index.html">Hexo</a></p>
<p>建议在 Linux 上搭建，而不用 Windows</p>
<p>下载 Node-js 和 npm：<code>sudo pacman -S nodejs npm</code></p>
<p>下载 Hexo 的方法如下：（推荐如下的全局下载方案）</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">mkdir ~/.npm-global<br>npm config <span class="hljs-built_in">set</span> prefix <span class="hljs-string">&#x27;~/.npm-global&#x27;</span><br></code></pre></td></tr></table></figure>
<p>然后在 <code>~/.profile</code> 中加入一行：<code>export PATH=~/.npm-global/bin:$PATH</code></p>
<p>最后输入：（npm 5.0.0 开始，默认安装不需要 <code>–-save</code> 选项，已经可以自动执行）</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-built_in">source</span> ~/.profile<br>npm install -g hexo-cli<br></code></pre></td></tr></table></figure>
<p>找一个空文件夹 <code>(hexo_folder)</code>，运行：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs bash">npx hexo init (hexo_folder)<br><span class="hljs-built_in">cd</span> (hexo_folder)<br>npm install<br></code></pre></td></tr></table></figure>
<p>所有的 npm 和 hexo 命令都要在<code>(hexo_folder)</code>（下文称为“<strong>博客目录</strong>”）下执行</p>
<p>全局配置的官方指南在<a target="_blank" rel="noopener" href="https://hexo.io/zh-cn/docs/">这里</a>，在 <code>(hexo_folder)/_config.yml</code> 下修改：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">url:</span> <span class="hljs-string">https://blog.example.top</span><br><span class="hljs-attr">permalink:</span> <span class="hljs-string">:title/</span><br><span class="hljs-attr">permalink_defaults:</span><br><span class="hljs-attr">pretty_urls:</span><br>  <span class="hljs-attr">trailing_index:</span> <span class="hljs-literal">false</span><br>  <span class="hljs-attr">trailing_html:</span> <span class="hljs-literal">false</span><br></code></pre></td></tr></table></figure>
<p>添加文章：<code>npx hexo new post hello</code>，这生成 <code>blog.example.top/hello</code></p>
<p>在子文件夹下添加文章：<code>npx hexo new post --path hello/me</code>，这生成 <code>blog.example.top/hello/me</code></p>
<p>每篇文章的 Markdown 文件内一开始有用 <code>---</code> 分隔的部分，下文称为 <strong>Front-matter</strong>，例如：</p>
<figure class="highlight dts"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><code class="hljs dts"><span class="hljs-symbol">title:</span> Hello World<br><span class="hljs-symbol">date:</span> <span class="hljs-number">2021</span><span class="hljs-number">-09</span><span class="hljs-number">-06</span> <span class="hljs-number">12</span>:<span class="hljs-number">00</span>:<span class="hljs-number">00</span><br><span class="hljs-symbol">math:</span> true<br><span class="hljs-symbol">category:</span><br>- 教程<br><span class="hljs-symbol">tag:</span><br>- Hello World<br>- Blog<br><span class="hljs-symbol">index_img:</span> <span class="hljs-meta-keyword">/img/</span>Purple_Flower.jpg<br><span class="hljs-symbol">banner_img:</span> <span class="hljs-meta-keyword">/img/</span>Purple_Flower.jpg<br></code></pre></td></tr></table></figure>
<h3 id="Fluid-主题"><a href="#Fluid-主题" class="headerlink" title="Fluid 主题"></a>Fluid 主题</h3><p>我选择的是 <a target="_blank" rel="noopener" href="https://hexo.fluid-dev.com/">Fluid</a> 主题，安装方法：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">npm install hexo-theme-fluid<br></code></pre></td></tr></table></figure>
<p>这样的话它会保存在<code>(hexo_folder)/node_modules/hexo-theme-fluid</code>（下文称为“<strong>主题目录</strong>”），更新主题需要在<code>(hexo_folder)</code>下执行<code>npm update hexo-theme-fluid</code></p>
<p>可以在 <code>(hexo_folder)/themes</code> 中创建软链接：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">ln -s ../node_modules/hexo-theme-fluid/<br></code></pre></td></tr></table></figure>
<p>Fluid 配置的官方指南在 <a target="_blank" rel="noopener" href="https://hexo.fluid-dev.com/docs/guide/">https://hexo.fluid-dev.com/docs/guide/</a></p>
<p>在<code>(hexo_folder)/_config.yml</code>下修改：<code>theme:fluid</code></p>
<p>在博客目录下创建 <code>_config.fluid.yml</code> 文件，将主题目录下的 <code>_config.yml</code>复制过去，以后如果修改任何主题配置，都只需修改 <code>_config.fluid.yml</code> 的配置即可，其优先级比主题目录下的 <code>_config.yml</code>高。</p>
<ul>
<li><p>更改用于浏览器标签的图标：<code>favicon: /img/favicon.png</code>，<code>apple_touch_icon</code>同步修改</p>
</li>
<li><p><code>force_https: true</code></p>
</li>
<li><p>代码高亮：<code>highlightjs: style: &quot;Vs&quot;</code></p>
</li>
<li><p>打字机打印速度：<code>typespeed: 64</code>，不开启循环播放</p>
</li>
<li><p>为文章内容中的标题添加锚图标：<code>icon: &quot;§&quot;</code></p>
</li>
<li><p>主题字体配置：</p>
</li>
</ul>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">font:</span><br>    <span class="hljs-attr">font_size:</span> <span class="hljs-string">16px</span><br>    <span class="hljs-attr">font_family:</span> <span class="hljs-string">Noto</span> <span class="hljs-string">Sans</span> <span class="hljs-string">CJK</span> <span class="hljs-string">SC,</span> <span class="hljs-string">sans-serif</span><br>    <span class="hljs-attr">code_font_size:</span> <span class="hljs-number">100</span><span class="hljs-string">%</span><br></code></pre></td></tr></table></figure>
<ul>
<li><p>导航栏左侧的标题：<code>blog_title: &quot;Home&quot;</code></p>
</li>
<li><p>关于页中 <code>icons</code> 一项只保留 GitHub</p>
</li>
<li><p>每个页面的 Banner 头图：<code>banner_img</code> ，自选</p>
</li>
<li><p>首页副标题（slogan）的独立设置：<code>slogan: text:</code> 自选</p>
</li>
<li><p>自动截取文章摘要：<code>auto_excerpt: enable: false</code></p>
</li>
<li><p>隐藏版权声明：<code>copyright: enable: false</code></p>
</li>
<li><p>MathJax 渲染（虽然慢但是支持比 Katex 多而且字体更美观）：严格按照<a target="_blank" rel="noopener" href="https://hexo.fluid-dev.com/docs/guide/##latex-数学公式">官方文档</a>，记得更改渲染引擎为<code>hexo-renderer-kramed</code> 并删掉原有的 <code>hexo-renderer-marked</code> ，书写格式见下方 <strong>LaTeX Test</strong> 一节，如需使用，需在 Front-matter 中指定 <code>math: true</code>，支持行内公式（和行间公式）。但是这样会修改丢失对 Markdown 复选框的支持，开启则需要将如下代码加入到本地的<code>(hexo_folder)/node_modules/hexo-renderer-kramed/lib/renderer.js</code>的第19行中（参考<a target="_blank" rel="noopener" href="https://corecabin.cn/2021/08/14/solve-some-problems-of-hexo-renderer-kramed-rendering-conflicts/">这里</a>），行内公式和行内代码冲突也可以参考<a target="_blank" rel="noopener" href="https://corecabin.cn/2021/08/14/solve-some-problems-of-hexo-renderer-kramed-rendering-conflicts/">这里</a></p>
</li>
</ul>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><code class="hljs js"><span class="hljs-comment">// Support To-Do List</span><br>Renderer.prototype.listitem = <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">text</span>) </span>&#123;<br>  <span class="hljs-keyword">if</span> (<span class="hljs-regexp">/^\s*\[[x ]\]\s*/</span>.test(text)) &#123;<br>    text = text.replace(<span class="hljs-regexp">/^\s*\[ \]\s*/</span>, <span class="hljs-string">&#x27;&lt;input type=&quot;checkbox&quot;&gt;&lt;/input&gt; &#x27;</span>).replace(<span class="hljs-regexp">/^\s*\[x\]\s*/</span>, <span class="hljs-string">&#x27;&lt;input type=&quot;checkbox&quot; checked&gt;&lt;/input&gt; &#x27;</span>);<br>    <span class="hljs-keyword">return</span> <span class="hljs-string">&#x27;&lt;li style=&quot;list-style: none&quot;&gt;&#x27;</span> + text + <span class="hljs-string">&#x27;&lt;/li&gt;\n&#x27;</span>;<br>  &#125; <span class="hljs-keyword">else</span> &#123;<br>    <span class="hljs-keyword">return</span> <span class="hljs-string">&#x27;&lt;li&gt;&#x27;</span> + text + <span class="hljs-string">&#x27;&lt;/li&gt;\n&#x27;</span>;<br>  &#125;<br>&#125;;<br></code></pre></td></tr></table></figure>
<h3 id="如何用“友链”页的模板创建一个“工具”页"><a href="#如何用“友链”页的模板创建一个“工具”页" class="headerlink" title="如何用“友链”页的模板创建一个“工具”页"></a>如何用“友链”页的模板创建一个“工具”页</h3><p>首先新建一个页面：<code>npx hexo new page tools</code>，注意发表文章要将模板 <code>page</code> 改为 <code>post</code></p>
<p>这样就有了 <code>example.top/tools/</code> 的页面</p>
<p>再找到 <code>icon-tools</code> 的图标：<a target="_blank" rel="noopener" href="https://blog.csdn.net/Xiaoming782893687/article/details/90744911">https://blog.csdn.net/Xiaoming782893687/article/details/90744911</a></p>
<p>实际操作是：在 <code>custom_css</code> 一栏中加入 <code>- //at.alicdn.com/t/font_2794470_ewg5czgn3cd.css</code>，然后就可以在导航栏菜单 <code>menu:</code> 一栏中加入 <code>- &#123; key: &quot;tools&quot;, link: &quot;/tools/&quot;, icon: &quot;iconfont icon-tools&quot; &#125;</code></p>
<p>在博客目录内的 <code>/source/tools/index.md</code> 的 Front-matter 加入 <code>layout: links</code>，这会引入主题目录中的模板：<code>/layout/links.ejs</code></p>
<p>于是开始设置 <code>_config.fluid.yml</code>：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">links:</span><br>  <span class="hljs-attr">enable:</span> <span class="hljs-literal">true</span><br>  <span class="hljs-attr">banner_img:</span> <span class="hljs-string">(your_picture)</span><br>  <span class="hljs-attr">banner_img_height:</span> <span class="hljs-number">60</span><br>  <span class="hljs-attr">banner_mask_alpha:</span> <span class="hljs-number">0.3</span><br>  <span class="hljs-attr">subtitle:</span><br>  <span class="hljs-comment"># 友链的成员项</span><br>  <span class="hljs-comment"># Member item of page</span><br>  <span class="hljs-attr">items:</span><br>    <span class="hljs-bullet">-</span> &#123;<br>      <span class="hljs-attr">title:</span> <span class="hljs-string">&quot;(your_title)&quot;</span>,<br>      <span class="hljs-attr">intro:</span> <span class="hljs-string">&quot;(your_intro)&quot;</span>,<br>      <span class="hljs-attr">link:</span> <span class="hljs-string">&quot;(your_link)&quot;</span>,<br>      <span class="hljs-attr">avatar:</span> <span class="hljs-string">&quot;(your_avatar)&quot;</span><br>    &#125;<br></code></pre></td></tr></table></figure>
<p>并修改主题目录下<code>/languages/</code>中的所有<code>.yml</code>文件，例如<code>en.yml</code>中改为：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">links:</span><br>  <span class="hljs-attr">title:</span> <span class="hljs-string">Tools</span><br>  <span class="hljs-attr">subtitle:</span> <span class="hljs-string">Tools</span><br></code></pre></td></tr></table></figure>
<h3 id="如何在导航栏菜单创建一个-GitHub-链接"><a href="#如何在导航栏菜单创建一个-GitHub-链接" class="headerlink" title="如何在导航栏菜单创建一个 GitHub 链接"></a>如何在导航栏菜单创建一个 GitHub 链接</h3><p>和创建“工具”方法类似，这次需要找到 <code>icon-github</code>（自带图标太小了）的图标</p>
<p>实际操作是：在 <code>custom_css</code> 一栏中加入 <code>- //at.alicdn.com/t/font_2794470_brhhjh3wx87.css</code>，然后就可以在导航栏菜单 <code>menu:</code> 一栏中加入 <code>- &#123; key: &quot;GitHub&quot;, link: &quot;https://github.com/(user_name)&quot;, icon: &quot;iconfont icon-github&quot; &#125;</code> 即可</p>
<h3 id="加入特效：鼠标点击有小红心"><a href="#加入特效：鼠标点击有小红心" class="headerlink" title="加入特效：鼠标点击有小红心"></a>加入特效：鼠标点击有小红心</h3><p>在主题目录下的 <code>/source/js</code> 文件夹中新建文件 <code>love.js</code>，在 <code>love.js</code> 文件中添加以下代码：（修改过，更新了已经弃用的部分，原始代码参见<a target="_blank" rel="noopener" href="https://segmentfault.com/a/1190000007215988">这里</a>）</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br></pre></td><td class="code"><pre><code class="hljs js">!(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">e, t, a</span>) </span>&#123;<br>  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">n</span>(<span class="hljs-params"></span>) </span>&#123;<br>    c(<br>      <span class="hljs-string">&quot;.heart&#123;width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);&#125;.heart:after,.heart:before&#123;content: &#x27;&#x27;;width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: fixed;&#125;.heart:after&#123;top: -5px;&#125;.heart:before&#123;left: -5px;&#125;&quot;</span><br>    ),<br>      o(),<br>      r();<br>  &#125;<br>  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">r</span>(<span class="hljs-params"></span>) </span>&#123;<br>    <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> e = <span class="hljs-number">0</span>; e &lt; d.length; e++)<br>      d[e].alpha &lt;= <span class="hljs-number">0</span><br>        ? (t.body.removeChild(d[e].el), d.splice(e, <span class="hljs-number">1</span>))<br>        : (d[e].y--,<br>          (d[e].scale += <span class="hljs-number">0.004</span>),<br>          (d[e].alpha -= <span class="hljs-number">0.013</span>),<br>          (d[e].el.style.cssText =<br>            <span class="hljs-string">&quot;left:&quot;</span> +<br>            d[e].x +<br>            <span class="hljs-string">&quot;px;top:&quot;</span> +<br>            d[e].y +<br>            <span class="hljs-string">&quot;px;opacity:&quot;</span> +<br>            d[e].alpha +<br>            <span class="hljs-string">&quot;;transform:scale(&quot;</span> +<br>            d[e].scale +<br>            <span class="hljs-string">&quot;,&quot;</span> +<br>            d[e].scale +<br>            <span class="hljs-string">&quot;) rotate(45deg);background:&quot;</span> +<br>            d[e].color +<br>            <span class="hljs-string">&quot;;z-index:99999&quot;</span>));<br>    requestAnimationFrame(r);<br>  &#125;<br>  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">o</span>(<span class="hljs-params"></span>) </span>&#123;<br>    <span class="hljs-keyword">var</span> t = <span class="hljs-string">&quot;function&quot;</span> == <span class="hljs-keyword">typeof</span> e.onclick &amp;&amp; e.onclick;<br>    e.onclick = <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">e</span>) </span>&#123;<br>      t &amp;&amp; t(), i(e);<br>    &#125;;<br>  &#125;<br>  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">i</span>(<span class="hljs-params">e</span>) </span>&#123;<br>    <span class="hljs-keyword">var</span> a = t.createElement(<span class="hljs-string">&quot;div&quot;</span>);<br>    (a.className = <span class="hljs-string">&quot;heart&quot;</span>),<br>      d.push(&#123;<br>        <span class="hljs-attr">el</span>: a,<br>        <span class="hljs-attr">x</span>: e.clientX - <span class="hljs-number">5</span>,<br>        <span class="hljs-attr">y</span>: e.clientY - <span class="hljs-number">5</span>,<br>        <span class="hljs-attr">scale</span>: <span class="hljs-number">1</span>,<br>        <span class="hljs-attr">alpha</span>: <span class="hljs-number">1</span>,<br>        <span class="hljs-attr">color</span>: s(),<br>      &#125;),<br>      t.body.appendChild(a);<br>  &#125;<br>  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">c</span>(<span class="hljs-params">e</span>) </span>&#123;<br>    <span class="hljs-keyword">var</span> a = t.createElement(<span class="hljs-string">&quot;style&quot;</span>);<br>    <span class="hljs-keyword">try</span> &#123;<br>      a.appendChild(t.createTextNode(e));<br>    &#125; <span class="hljs-keyword">catch</span> (t) &#123;<br>      a.styleSheet.cssText = e;<br>    &#125;<br>    t.getElementsByTagName(<span class="hljs-string">&quot;head&quot;</span>)[<span class="hljs-number">0</span>].appendChild(a);<br>  &#125;<br>  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">s</span>(<span class="hljs-params"></span>) </span>&#123;<br>    <span class="hljs-keyword">return</span> (<br>      <span class="hljs-string">&quot;rgb(&quot;</span> +<br>      ~~(<span class="hljs-number">255</span> * <span class="hljs-built_in">Math</span>.random()) +<br>      <span class="hljs-string">&quot;,&quot;</span> +<br>      ~~(<span class="hljs-number">255</span> * <span class="hljs-built_in">Math</span>.random()) +<br>      <span class="hljs-string">&quot;,&quot;</span> +<br>      ~~(<span class="hljs-number">255</span> * <span class="hljs-built_in">Math</span>.random()) +<br>      <span class="hljs-string">&quot;)&quot;</span><br>    );<br>  &#125;<br>  <span class="hljs-keyword">var</span> d = [];<br>  (e.requestAnimationFrame = (<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"></span>) </span>&#123;<br>    <span class="hljs-keyword">return</span> (<br>      e.requestAnimationFrame ||<br>      e.webkitRequestAnimationFrame ||<br>      e.mozRequestAnimationFrame ||<br>      e.oRequestAnimationFrame ||<br>      e.msRequestAnimationFrame ||<br>      <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">e</span>) </span>&#123;<br>        <span class="hljs-built_in">setTimeout</span>(e, <span class="hljs-number">1e3</span> / <span class="hljs-number">60</span>);<br>      &#125;<br>    );<br>  &#125;)()),<br>    n();<br>&#125;)(<span class="hljs-built_in">window</span>, <span class="hljs-built_in">document</span>);<br></code></pre></td></tr></table></figure>
<p>在主题目录下的 <code>\layout\layout.ejs</code> 文件末尾 <code>&lt;!-- SCRIPTS --&gt;</code> 一段中添加以下代码：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs ejs">&lt;script type=&quot;text/javascript&quot; src=&quot;/js/love.js&quot;&gt;&lt;/script&gt;<br></code></pre></td></tr></table></figure>
<h3 id="插入网易云音乐"><a href="#插入网易云音乐" class="headerlink" title="插入网易云音乐"></a>插入网易云音乐</h3><p>在网易云音乐的网页版上选择一首音乐（不能是 VIP 音乐），点进页面 <code>https://music.163.com/#/song?id=(music_id)</code> 后选择“生成外链播放器”，“自动播放”一栏自选，再复制 HTML 代码：</p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><code class="hljs html"><span class="hljs-tag">&lt;<span class="hljs-name">iframe</span></span><br><span class="hljs-tag">  <span class="hljs-attr">frameborder</span>=<span class="hljs-string">&quot;no&quot;</span></span><br><span class="hljs-tag">  <span class="hljs-attr">border</span>=<span class="hljs-string">&quot;0&quot;</span></span><br><span class="hljs-tag">  <span class="hljs-attr">marginwidth</span>=<span class="hljs-string">&quot;0&quot;</span></span><br><span class="hljs-tag">  <span class="hljs-attr">marginheight</span>=<span class="hljs-string">&quot;0&quot;</span></span><br><span class="hljs-tag">  <span class="hljs-attr">width</span>=<span class="hljs-string">&quot;330&quot;</span></span><br><span class="hljs-tag">  <span class="hljs-attr">height</span>=<span class="hljs-string">&quot;86&quot;</span></span><br><span class="hljs-tag">  <span class="hljs-attr">src</span>=<span class="hljs-string">&quot;//music.163.com/outchain/player?type=2&amp;id=(music_id)&amp;auto=0&amp;height=66&quot;</span></span><br><span class="hljs-tag">&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">iframe</span>&gt;</span><br></code></pre></td></tr></table></figure>
<p>直接粘贴到 Markdown 文件内即可</p>
<h3 id="调试并部署到-GitHub"><a href="#调试并部署到-GitHub" class="headerlink" title="调试并部署到 GitHub"></a>调试并部署到 GitHub</h3><p>安装 <a target="_blank" rel="noopener" href="https://github.com/hexojs/hexo-deployer-git">hexo-deployer-git</a>。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">npm install hexo-deployer-git<br></code></pre></td></tr></table></figure>
<p>修改配置 <code>_config.yml</code>：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">deploy:</span><br>  <span class="hljs-attr">type:</span> <span class="hljs-string">git</span><br>  <span class="hljs-attr">repo:</span> <span class="hljs-string">&lt;repository</span> <span class="hljs-string">url&gt;</span> <span class="hljs-comment"># https://github.com/(user_name)/(user_name).github.io</span><br>  <span class="hljs-attr">branch:</span> <span class="hljs-string">(branch_name)</span> <span class="hljs-comment"># default is &quot;main&quot;</span><br></code></pre></td></tr></table></figure>
<p>调试：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">npx hexo s --debug<br></code></pre></td></tr></table></figure>
<p>部署：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">npx hexo clean &amp;&amp; npx hexo deploy<br></code></pre></td></tr></table></figure>
<p>查看 <code>(user_name).github.io</code> 和 <code>blog.example.top</code> 上的网页是否部署成功</p>
<p>注意此时原有的自定义域名会被覆盖掉，如果 GitHub Pages 需要使用 CNAME 文件自定义域名，请将 CNAME 文件置于博客目录下的 <code>source</code> 文件夹，只有这样 <code>npx hexo deploy</code> 才能将 CNAME 文件一并推送至部署分支</p>
<h3 id="LaTeX-Test"><a href="#LaTeX-Test" class="headerlink" title="LaTeX Test"></a>LaTeX Test</h3><p>This is an equation: $\lim\limits_{n\to\infty}\left(1+\dfrac{1}{n}\right)^n=\mathrm{e}$.</p>
<p>Another Example: $\sum\limits_{n=0}^{\infty}\dfrac{x^n}{n!}=\mathrm{e}^x$</p>
<script type="math/tex; mode=display">
\dfrac{\mathrm{d}}{\mathrm{d}t}\left(\dfrac{\partial L'}{\partial \dot{p}}\right) - \dfrac{\partial L'}{\partial p} = 0</script><script type="math/tex; mode=display">
\lim_{n\to+\infty}a^n = \left\{
    \begin{aligned}
        &0,\quad &|a|<1 \\
        &N/A,\quad &|a|>1 \\
        &1\quad &a=1 \\
        &N/A,\quad &a=-1
    \end{aligned}
\right.</script><script type="math/tex; mode=display">
\boldsymbol{a}\cdot(\boldsymbol{b}\times\boldsymbol{c}) = \boldsymbol{b}\cdot(\boldsymbol{c}\times\boldsymbol{a}) = \boldsymbol{c}\cdot(\boldsymbol{a}\times\boldsymbol{b})</script><script type="math/tex; mode=display">
\begin{align*}
    \partial_i r
    &= \partial_i \sqrt{(x-x')^2 + (y-y')^2 + (z-z')^2} \\
    &= \frac{2(x-x')}{2\sqrt{(x-x')^2 + (y-y')^2 + (z-z')^2}} \\
    &= \frac{x-x'}{r}
\end{align*}</script><script type="math/tex; mode=display">
I_r = \frac{1}{2\pi}\oint p_r \,\mathrm{d}r = \frac{1}{2\pi}\int_0^{2\pi} p_r \frac{\mathrm{d}r}{\mathrm{d}\theta}\,\mathrm{d}\theta = \frac{\lambda}{\omega} + \sqrt{2m\kappa}</script><script type="math/tex; mode=display">
\begin{align*}
    H
    &= T+V \\
    &= \frac{1}{2}m(\dot{x} + \dot{\theta}l\cos\theta)^2 + \frac{1}{2}m(2ax\dot{x} + \dot{\theta}l\sin\theta)^2 + mg(ax^2 - l\cos\theta) \\
    &= \frac{1}{2}m(1+4a^2x^2)\dot{x}^2 - \frac{1}{2}ml^2\dot{\theta}^2 + ml(\cos\theta + 2ax\sin\theta)\dot{x}\dot{\theta} + mg(ax^2 - l\cos\theta) \\
    &= \frac{A}{2}\cdot\left(\frac{Dp_x - Bp_\theta}{AD - BC}\right)^2 + \frac{D}{2}\cdot\left(\frac{Ap_\theta - Cp_x}{AD - BC}\right)^2 + \frac{B(Dp_x - Bp_\theta)(Ap_\theta - Cp_x)}{(AD - BC)^2} + mg(ax^2 - l\cos\theta) \\
    &= \frac{Dp_x^2 + Ap_\theta^2 - (B+C)p_x p_\theta}{2(AD - BC)} \\
    &= \frac{[p_\theta,\ p_x]\begin{bmatrix}A & B \\ C & D\end{bmatrix}\begin{bmatrix}p_\theta \\ p_x\end{bmatrix}}{2\begin{vmatrix}A & B \\ C & D\end{vmatrix}} + mg(ax^2 - l\cos\theta)
\end{align*}</script><h3 id="Code-Test"><a href="#Code-Test" class="headerlink" title="Code Test"></a>Code Test</h3><figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><code class="hljs python"><span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">fib</span>(<span class="hljs-params">n</span>):</span><br>    a, b = <span class="hljs-number">0</span>, <span class="hljs-number">1</span><br>    <span class="hljs-keyword">while</span> a &lt; n:<br>        <span class="hljs-built_in">print</span>(a, end=<span class="hljs-string">&#x27; &#x27;</span>)<br>        a, b = b, a+b<br>    <span class="hljs-built_in">print</span>()<br>fib(<span class="hljs-number">1000</span>)<br></code></pre></td></tr></table></figure>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">iconv -f (from_encoding) -t (to_encoding) (from_file_name) -o (to_file_name)<br></code></pre></td></tr></table></figure>
<h3 id="Picture-Test"><a href="#Picture-Test" class="headerlink" title="Picture Test"></a>Picture Test</h3><p>格式：<code>![](../images/(your_picture.jpg)</code>，图片默认放在博客目录的 <code>/source/images/</code> 下</p>
<p><img src="../images/hello_world_reimu.jpg" srcset="/img/loading.gif" lazyload alt=""></p>
<h3 id="进阶功能"><a href="#进阶功能" class="headerlink" title="进阶功能"></a>进阶功能</h3><ul>
<li style="list-style: none"><input type="checkbox"></input> Aplayer</li>
<li style="list-style: none"><input type="checkbox"></input> 樱花特效</li>
<li style="list-style: none"><input type="checkbox"></input> 点赞功能</li>
</ul>

            </div>
            <hr>
            <div>
              <div class="post-metas mb-3">
                
                  <div class="post-meta mr-3">
                    <i class="iconfont icon-category"></i>
                    
                      <a class="hover-with-bg" href="/categories/%E6%95%99%E7%A8%8B/">教程</a>
                    
                  </div>
                
                
                  <div class="post-meta">
                    <i class="iconfont icon-tags"></i>
                    
                      <a class="hover-with-bg" href="/tags/Hello-World/">Hello World</a>
                    
                      <a class="hover-with-bg" href="/tags/Blog/">Blog</a>
                    
                  </div>
                
              </div>
              
              
                <div class="post-prevnext">
                  <article class="post-prev col-6">
                    
                    
                      <a href="/Manjaro-KDE-Installation/">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile">Manjaro KDE 安装指南</span>
                        <span class="visible-mobile">上一篇</span>
                      </a>
                    
                  </article>
                  <article class="post-next col-6">
                    
                    
                  </article>
                </div>
              
            </div>

            
          </article>
        </div>
      </div>
    </div>
    
      <div class="d-none d-lg-block col-lg-2 toc-container" id="toc-ctn">
        <div id="toc">
  <p class="toc-header"><i class="iconfont icon-list"></i>&nbsp;目录</p>
  <div class="toc-body" id="toc-body"></div>
</div>

      </div>
    
  </div>
</div>

<!-- Custom -->


    

    
      <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
    

    
  </main>

  <footer class="text-center mt-5 py-3">
  <div class="footer-content">
     <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a> 
  </div>
  

  

  
</footer>


  <!-- SCRIPTS -->
  
  <script  src="https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js" ></script>
<script  src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.min.js" ></script>
<script  src="/js/events.js" ></script>
<script  src="/js/plugins.js" ></script>

<!-- Plugins -->


  <script  src="/js/local-search.js" ></script>



  
    <script  src="/js/img-lazyload.js" ></script>
  



  



  
    <script  src="https://cdn.jsdelivr.net/npm/tocbot@4.12.3/dist/tocbot.min.js" ></script>
  
  
    <script  src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js" ></script>
  
  
    <script  src="https://cdn.jsdelivr.net/npm/anchor-js@4.3.1/anchor.min.js" ></script>
  
  
    <script defer src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js" ></script>
  






  <script  src="https://cdn.jsdelivr.net/npm/typed.js@2.0.12/lib/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var title = document.getElementById('subtitle').title;
      
      typing(title)
      
    })(window, document);
  </script>





  

  
    <!-- MathJax -->
    <script>
      MathJax = {
        tex: {
          inlineMath: [['$', '$'], ['\\(', '\\)']]
        },
        loader: {
          
        },
        options: {
          renderActions: {
            findScript: [10, doc => {
              document.querySelectorAll('script[type^="math/tex"]').forEach(node => {
                const display = !!node.type.match(/; *mode=display/);
                const math = new doc.options.MathItem(node.textContent, doc.inputJax[0], display);
                const text = document.createTextNode('');
                node.parentNode.replaceChild(text, node);
                math.start = { node: text, delim: '', n: 0 };
                math.end = { node: text, delim: '', n: 0 };
                doc.math.push(math);
              });
            }, '', false],
            insertedScript: [200, () => {
              document.querySelectorAll('mjx-container').forEach(node => {
                let target = node.parentNode;
                if (target.nodeName.toLowerCase() === 'li') {
                  target.parentNode.classList.add('has-jax');
                }
              });
            }, '', false]
          }
        }
      };
    </script>

    <script async src="https://cdn.jsdelivr.net/npm/mathjax@3.1.4/es5/tex-svg.js" ></script>

  











<!-- 主题的启动项 保持在最底部 -->
<script  src="/js/boot.js" ></script>

  <script type="text/javascript" src="/js/love.js"></script>


</body>
</html>
